package com.weacar.utils;

import android.content.Context;

import com.weacar.bean.LoginBean;

/**
 * 获取用户信息
 */
public class UserInfoUtil {

    public static String getToken(Context context) {
        LoginBean loginBean = SharedPreferenceUtil.getObject(context, "loginBean");
        if (loginBean == null) {
            return "";
        } else {
            return loginBean.getMsg().getToken();
        }
    }
}
